package learning.groovy.number

class NumberDemo {
	static main(args){
		def store = ''
		10.times {
			store += 'X'
		}
		println store
		
		store = ''
		1.upto(5) { number ->
			store += number
		}
		println store
		
		store = ''
		2.downto(-2) { number ->
			store += number + ' '
		}
		println store
		
		store = ''
		0.step(0.5, 0.1) {number ->
			store += number + ' '
		}
		println store
		
	}
}
